package Bk.basic;

import java.util.Scanner;

public class J03_CatchNumber {

	public static void main(String[] args) {

		Scanner sc = null;
		int num1;
		int num2 = 54;
		final String a = "추측한 숫자가 큽니다.";
		final String b = "추측한 숫자가 작습니다.";
		final String c = "빙고! 숫자를 맞췄습니다.";
		
		sc = new Scanner(System.in);
		System.out.print("숫자 1~100 중 입력하세요 : ");
		num1 = sc.nextInt();
		
		if (num1 >=1 && num1 <=100 ) {
			if (num1 > num2 ) System.out.println(a);
				else if (num1 < num2 ) System.out.println(b);
			if (num1 == num2 ) System.out.println(c);
		}
		else System.out.println("잘못 입력하셨습니다.");
		
		
		int num3;
		Scanner sd= null;
		sd = new Scanner(System.in);
		num3=sc.nextInt();
	}

}



